<?php

namespace app\admin\controller;

use app\common\lib\Captcha;
use app\common\lib\Show;
use think\response\Json;

class Verify extends AdminBase {

    /**
     * 获取图形验证码和key
     * @return Json
     */
    public function index(): Json
    {
        return Show::success(app()->make(Captcha::class)->create());
    }
}
